package com.mvc.config;

import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.mvc.servlet.DispathServlet;

@Configuration
public class ServletConfig {
	   /**
	 * @return
	 * 注册servlet
	 */
	    @Bean
	    public ServletRegistrationBean servletRegistrationBean() {
	        return new ServletRegistrationBean(new DispathServlet(), "/");
	    }
}
